#include <stdio.h>
#include <stdlib.h>
#include "package.h"
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>         
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "client.h"

int main(void)
{
    char buf[200];
    double min;
    int cost,ret;
    net_init();

    printf("\n%s\n",get_car_id("1.bmp",buf));
    if((ret = is_parking()) < 0){
        printf("\n服务器错误\n");
    }else if(ret){
        printf("\n已入库\n");
    }else{
        printf("\n未入库\n");
        in_parking();
    }
    /*sleep(120);
    cost = out_parking(&min);
    printf("\n************收费站************\n");
    printf("停车%d分钟，收费%d元\n",(int)min,cost);*/
    net_close();
    return 0;
}